<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateScenicDivinationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('scenic_divinations', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('dividend_id')->index();
            $table->unsignedInteger('scenic_area_id')->index();
            $table->string('image')->nullable()->comment('图片');
            $table->text('uname')->nullable()->comment('人物名称');
            $table->text('profile')->nullable()->comment('人物详情');
            $table->text('content')->nullable()->comment('财运解析');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('scenic_divinations');
    }
}
